<?php

class GenerateForm extends CFormModel
{
	public $wordCount;

	/**
	 * Declares the validation rules.
	 */
	public function rules()
	{
		return array(
			array('wordCount', 'required'),
			array('wordCount', 'numerical','integerOnly'=>true),
		);
	}

	/**
	 * Declares customized attribute labels.
	 * If not declared here, an attribute would have a label that is
	 * the same as its name with the first letter in upper case.
	 */
	public function attributeLabels()
	{
		return array(
			'wordCount'=>'Word Count',
		);
	}
}